package com.ustarlink.learnlauncher;

/**
 * Created by cfm on 16-3-11.
 */
public class SortApps {
    public void exchangeSort(MainActivity.Pac[] pacs){
        int i, j;
        MainActivity.Pac temp;
        for (i = 0; i < pacs.length; i++){
            for (j = 0; j < pacs.length; j ++){
                if (pacs[i].label.compareToIgnoreCase(pacs[i].label) > 0){
                    temp = pacs[i];
                    pacs[i] = pacs[j];
                    pacs[j] = temp;
                }
            }
        }
    }
}
